package edu.lnu.ums.entities.processes;

import edu.lnu.ums.entities.Expenditures;
import edu.lnu.ums.entities.core.AbstractProcess;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;



/**
 *
 * @author Orysia
 */

@Entity
public class ExpendituresProcess extends AbstractProcess {
    private static final long serialVersionUID = 1L;

    @OneToMany(cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE}, fetch=FetchType.LAZY)
    @JoinColumn(name="expParent")
    List<Expenditures> expenditure;

   public List<Expenditures> getExpenditure() {
        return expenditure;
    }

    public void setExpenditure(List<Expenditures> expenditure) {
        this.expenditure = expenditure;
    }

      public Class<?> getExpendituresClass() {
        return Expenditures.class;
    }

        public Class<?> getExpendClass() {
        return Expenditures.class;
   
    }

}
